{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">
    <blockquote class="layui-elem-quote layui-quote-nm">
        应用名称:{$deviceInfo.app_name}[{$deviceInfo.app_id}]<br/>
        设备编号：{$deviceInfo.device_id}  设备名称：{$deviceInfo.device_name}  设备系统: {$deviceInfo.system_type} 系统版本: {$deviceInfo.sys_version} <br />
        设备型号:{$deviceInfo.device_model} 设备界面:{$deviceInfo.ui_mode} 连网方式:{$deviceInfo.connection_type}<br/>
        设备类型：{$deviceInfo.device_model} 最后访问ip：<a href="https://www.ipip.net/ip/{$deviceInfo.ip}.html" target="_blank">{$deviceInfo.ip}</a> <br/>
        最后应用版本:{$deviceInfo.app_version} 极光ID：{$deviceInfo.jiguang_id} 语言: {$deviceInfo.language}
        <br>积分: {$deviceInfo.points}     &nbsp;&nbsp; {if $deviceInfo.time_expired>0}免广告截止时间: {$deviceInfo.time_expired|date='Y-m-d H:i:s',###}{else}未兑换免广告{/if}
        <br/>
        加入时间：{$deviceInfo.time_added|mac_day=color} 最后访问时间： {$deviceInfo.time_updated|mac_day=color}
        {if $deviceInfo.is_need_updated ===1}
        <a class="layui-badge-rim j-ajax  layui-bg-orange" confirm="确认关闭升级提示吗？" data-href="{:url('updatedevice?app_id='.$deviceInfo['app_id'].'&device_id='.$deviceInfo['device_id'].'&settype=0')}" href="javascript:;" title="关闭升级提示">关闭升级提示</a>
        {else/}
        <a class="layui-badge-rim j-ajax" confirm="确认开启升级提示吗？" data-href="{:url('updatedevice?app_id='.$deviceInfo['app_id'].'&device_id='.$deviceInfo['device_id'].'&settype=1')}" href="javascript:;" title="开启升级提示">开启升级提示</a>
        {/if}
    </blockquote>
     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="80">编号</th>
                <th width="140">访问时间</th>
                <th width="150">类型</th>
                <th>影片或者直播信息</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.ctime|mac_day=color}</td>
                <td>{$vo.adtype|getOpenAdLogType}</td>
                <td>{$vo|getOpenAdVideoInfo}</td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('ulog/devicelog',$param)}";
    layui.use(['laypage', 'layer'], function() {
        var laypage = layui.laypage
                , layer = layui.layer;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>